package cn.liujianbo.example.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * @author 刘建波
 * @date 2021-10-14 21:38
 */
@Data
@AllArgsConstructor
public class Car {

    private String make;
    private int numberOfSeats;
    private CarType type;

    //constructor, getters, setters etc.

    @AllArgsConstructor
    @Getter
    public enum CarType{
        SMALL("小车", 1),
        BIG("卡车", 2);

        private final String typeName;
        private final Integer typeCode;
    }
}

